<?php
// Define path to application directory
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH',
              realpath(dirname(__FILE__) .DS. 'application'));


// Define application environment
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV',
              (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV')
                                         : 'developer'));

set_include_path(implode(PATH_SEPARATOR, array(
    dirname(__FILE__) .DS. 'library',
	get_include_path(),
)));

define('PUBLIC_PATH', dirname(__FILE__) . DS.'public');
define('TEMPLATE_PATH', PUBLIC_PATH . DS.'templates');
define('TEMPLATE_PATH_FRONT', TEMPLATE_PATH . DS.'frontend');
define('TEMPLATE_PATH_BACK', TEMPLATE_PATH . DS.'backend');

define('MODULES_PATH', dirname(__FILE__) . DS. 'modules');
define('MODULES_PATH_FRONT', dirname(__FILE__) . DS. 'modules'.DS.'frontend');
define('MODULES_PATH_BACK', dirname(__FILE__) . DS. 'modules'.DS.'backend');
define('COMPONENTS_PATH', dirname(__FILE__). DS.'components');

define('FILE_PATH', PUBLIC_PATH . DS.'files');
define('LANGUAGES_PATH', APPLICATION_PATH . DS.'languages');
define('CACHE_PATH', APPLICATION_PATH . DS.'caches');
define('CACHE_PATH_MODULE', APPLICATION_PATH . DS.'caches'. DS.'module');
define('CACHE_PATH_COMPONENT', APPLICATION_PATH. DS.'caches' . DS.'component');
define('CACHE_PATH_LANGUAGE', APPLICATION_PATH. DS.'caches' . DS.'language');
define('CACHE_PATH_OTHER', APPLICATION_PATH. DS.'caches' . DS.'other');
define('CONFIG_PATH', APPLICATION_PATH . DS.'configs');

define('SCRIPTS_PATH', PUBLIC_PATH . DS.'scripts');


define('APPLICATION_URL', DS.'gcms');
define('PUBLIC_URL', APPLICATION_URL . DS.'public');
define('MODULES_URL_FRONT', APPLICATION_URL . DS. 'modules'.DS.'frontend');
define('MODULES_URL_BACK', APPLICATION_URL . DS. 'modules'.DS.'frontend');
define('TEMPLATE_URL', PUBLIC_URL . DS.'templates');
define('TEMPLATE_URL_FRONT', TEMPLATE_URL . DS.'frontend');
define('TEMPLATE_URL_BACK', TEMPLATE_URL . DS.'backend');

define('MODULES_URL', APPLICATION_URL . DS.'modules');
define('COMPONENTS_URL', APPLICATION_URL . DS.'components');
define('FILE_URL', PUBLIC_URL . DS.'files');
define('SCRIPTS_URL', PUBLIC_URL . DS.'scripts');

define('GLOBAL_CACHING_MODULE', 7200);
define('GLOBAL_CACHING_LANGUAGE', 7200);
define('GLOBAL_CACHING_OTHER', 7200);
define('GLOBAL_LANGGUAGE', "en_US");

define("REGISTRY_KEY_DBO", "zendregistry_key_dbo");
define("REGISTRY_KEY_LOCALE", "zendregistry_key_locale");
define("REGISTRY_KEY_LANGUAGE", "zendregistry_key_language");
define("TBL_PRF", "g_");
define("APP_SESSION_NAME", "mycv");